<{include file="header.tpl"}>
<body onLoad="focusUsername()">
<script language="Javascript">
var screenHeight = window.screen.availHeight;
var screenWidth = window.screen.availWidth;

function focusUsername()
{
	document.loginform.username.focus();
}


function launchMonitor() {
	if (document.loginform.username.value == "" || document.loginform.password.value == "") {
		alert("<{$language[requiredfieldempty]}>");
	}

	docWidth = (screenWidth/2)-250;
	docHeight = (screenHeight/2)-250;
	chatwindow = window.open("<{$swiftpath}>monitor/index.php?_ca=login&username="+escape(document.loginform.username.value)+"&password="+escape(document.loginform.password.value) +"&randno="+doRand(),"monitor"+doRand(), "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width=850,height=700,left="+docWidth+",top="+docHeight);

	return false;
}
</script>
<form name="loginform" action="index.php" method="POST"<{if $ismonitor eq true}> onSubmit="javascript:return launchMonitor();"<{/if}>>
<center><br/><br/>
<table width="300" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td colspan="2" align="center" valign="top"><img src="<{$themepath}><{$product}>.gif" /><br/><br/></td>
  </tr>
  <tr>
    <td width="144" align="left" valign="top"><span class="smalltext"><font color="#333333"><{$version}></font></span></td>
    <td width="144" align="right" valign="top"><span class="smalltext"><font color="#333333"><{$date}></font></span></td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr bgcolor="#E2E1E1">
        <td height="2"><img src="<{$themepath}>space.gif" width="1" height="2"></td>
      </tr>
      <tr bgcolor="#A9A9A9">
        <td height="3"><img src="<{$themepath}>space.gif" width="1" height="3"></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellpadding="1" cellspacing="0" bgcolor="#939393">
          <tr>
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="3">
              <tr bgcolor="#F8F8F8">
                <td width="37%" align="left" valign="top"><span class="mediumtext"><{$language[username]}>:</span></td>
                <td width="63%" align="left" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
                  <input type="text" name="username" id="username" class="logintext" value="<{$username}>" size="25" />
                </font></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td align="left" valign="top"><span class="mediumtext"><{$language[password]}>:</span></td>
                <td align="left" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
                  <input type="password" name="password" id="password" class="loginpassword" value="<{$password}>" size="25" />
                </font></td>
              </tr>
              <tr bgcolor="#F8F8F8">
                <td align="left" valign="top"><span class="mediumtext"><{$language[rememberme]}>:</span></td>
                <td align="left" valign="top"><span class="mediumtext"><label for="rememberyes"><input type="radio" name="remember" class="swiftradio" id="rememberyes" value="1"<{if $remember == true}> checked<{/if}> /><{$language[yes]}></label>
<label for="rememberno"><input type="radio" name="remember" id="rememberno" value="0"<{if $remember == false}> checked<{/if}> /><{$language[no]}></label></span></td>
              </tr>
              <tr align="center" bgcolor="#FFFFFF">
                <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
                  <input type="submit" class="bluebuttonbig" value="<{$language[login]}>" /> <input type="hidden" name="querystring" value="<{$querystring}>"><input type="hidden" name="cookiepassword" value="<{$cookiepassword}>">
                </font></td>
                </tr>
				<{if $error neq ""}>
				<tr class="rowerror" title="" onmouseover="" onmouseout="" onclick="">
				<td align="center" valign="" colspan="2" width=""><{$error}>
				</td>
				</tr>
				<{/if}>
			</table></td>
          </tr>
        </table></td>
      </tr>
      <tr bgcolor="#A9A9A9">
        <td height="3"><img src="<{$themepath}>space.gif" width="1" height="3"></td>
      </tr>
      <tr bgcolor="#E2E1E1">
        <td height="2"><img src="<{$themepath}>space.gif" width="1" height="2"></td>
      </tr>
    </table></td>
  </tr>


</table>

<input type="hidden" name="_ca" value="login"/>
</center>
</form>
<center>
<span class="smalltext"><font color="#333333"><{$poweredby}><br/><{$copyright}></font></span><br />
</center>
</body>
</html>